home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / utility / dboss3.zip / DBX-BAT.DOC < prev    next >
Text File  |  1992-04-01  |  6KB  |  274 lines

  1.  
  2.  
  3.                             BATCH FILE MAINTENANCE
  4. ------------------------------------------------------------------------------
  5.  
  6. BATCH FILE DEFINITION
  7.  
  8.  1  A BATCH FILE is any file with the following characteristics:
  9.  
  10.     (A)  File name extension of .BAT
  11.  
  12.              Example:  AUTOEXEC.BAT
  13.  
  14.     (B)  Contains one or more commands executed by DOS one at a time.
  15.  
  16.     (C)  File may receive external data to perform different functions on each
  17.          execution.
  18.  
  19.              Example:  00.BAT (DOS BOSS general purpose batch file)
  20.  
  21.     (D)  File may be executed without entering .BAT
  22.  
  23.              Example:  Enter BOSS to execute BOSS.BAT
  24.  
  25.     DOS BOSS utilizes a sequence of commands in a batch file as a road map
  26.     from DOS BOSS to a program or DOS command and back to DOS BOSS.  Upon EXIT
  27.     TO DOS from an activity, DOS executes the next command in the active batch
  28.     file.
  29.  
  30. BATCH FILE COMMANDS
  31.  
  32.  1  CALL FILE    Executes BATCH FILE within batch file and returns to original
  33.                  batch file.
  34.  
  35.  2  CLS          Clears the screen.
  36.  
  37.  3  ECHO ON      Enables display of DOS commands.
  38.  
  39.  4  ECHO OFF     Disables display of DOS commands.
  40.  
  41.  5  ECHO TEXT    Displays TEXT message.
  42.  
  43.  6  PAUSE        Suspends processing until keystroke.  Displays:
  44.  
  45.                  STRIKE A KEY WHEN READY . . .
  46.  
  47.  7  PAUSE TEXT   Pauses and displays TEXT message.
  48.  
  49.  8  PROMPT $P$G  Sets DOS Prompt to display current or default DRIVE:PATH>
  50.  
  51.  9  Refer to your DOS manual for information about other batch file commands.
  52.  
  53. 10  Use the following example for applications that require a prompt message
  54.     or multiple commands before running.
  55.  
  56.     ECHO OFF     Disables display of DOS commands.
  57.  
  58.     CLS          Clears the screen.
  59.  
  60.     ECHO TEXT    Displays prompt TEXT message.
  61.  
  62.  
  63.  
  64.                                      5-1
  65.  
  66.  
  67.  
  68.  
  69.                             BATCH FILE MAINTENENCE
  70. ------------------------------------------------------------------------------
  71.  
  72. BATCH FILE COMMANDS (Continued)
  73.  
  74.     PAUSE        Suspends processing until keystroke.  Displays:
  75.  
  76.                  STRIKE A KEY WHEN READY . . .
  77.  
  78.     D:           Changes to drive D:
  79.  
  80.     CD\DIR       Changes to directory named \DIR.
  81.  
  82.     PGM1         Runs PGM1 (device driver, etc.).
  83.  
  84.     PGM2         Runs PGM2 (application program).
  85.  
  86.     Syntax:      C:\BOSS\MS.BAT
  87.  
  88.                      Where:     C: = DOS BOSS Drive.
  89.  
  90.                              \BOSS = DOS BOSS Path.
  91.  
  92.                                  M = Main Menu Code.
  93.  
  94.                                  S = Sub Menu Code.
  95.  
  96. BATCH FILE MAINTENANCE
  97.  
  98.  1  Any text file up to 60 lines may be edited by using BATCH FILE
  99.     MAINTENANCE.  This includes AUTOEXEC.BAT and CONFIG.SYS files.
  100.  
  101.  2  Enter DRIVE:PATH\FILENAME.EXT for all files.
  102.  
  103.  3  To load an existing file, depress the F02 Key.
  104.  
  105.         F02
  106.  
  107.     If a file can not be located, the following message will appear in the
  108.     MESSAGE LINE box.
  109.  
  110.         DRIVE:PATH\FILENAME.EXT Error
  111.  
  112.  4  To save the currently displayed file, depress the F03 Key.
  113.  
  114.         F03
  115.  
  116.  5  To delete any file, depress the F04 Key.
  117.  
  118.         F04
  119.  
  120.  6  To insert a blank line at the cursor position, depress the I Key while
  121.     holding the ALT Key.
  122.  
  123.         ALT I
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.                                      5-2
  131.  
  132.  
  133.  
  134.  
  135.                             BATCH FILE MAINTENANCE
  136. ------------------------------------------------------------------------------
  137.  
  138. BATCH FILE MAINTENANCE (Continued)
  139.  
  140.  7  To delete a line of text at the cursor position, depress the D Key while
  141.     holding the ALT Key.
  142.  
  143.         ALT D
  144.  
  145.  8  To move a line of text up or down, depress the Page Up Key or the Page
  146.     Down Key while holding the Control Key.  The cursor will move with the
  147.     text.
  148.  
  149.         CTRL PAGE UP
  150.         CTRL PAGE DOWN
  151.  
  152.  9  To move the cursor to the beginning of text at the cursor line, depress
  153.     the Home Key.
  154.  
  155.         HOME
  156.  
  157. 10  To move the cursor to the end of text at the cursor line, depress the End
  158.     Key.
  159.  
  160.         END
  161.  
  162. 11  To delete a character at the cursor position, depress the Delete Key.
  163.  
  164.         DELETE
  165.  
  166. 12  To enable insertion of a character at the cursor position, depress the
  167.     Insert Key.  Depress the Insert Key a second time to disable insertion.
  168.  
  169.         INSERT
  170.  
  171. 13  To move the cursor to the beginning of the next line, depress the Enter
  172.     Key.
  173.  
  174.         ENTER
  175.  
  176. 14  To move the cursor to any position within the data entry fields, depress
  177.     the cursor keys.
  178.  
  179.         CURSOR UP
  180.         CURSOR DOWN
  181.         CURSOR RIGHT
  182.         CURSOR LEFT
  183.  
  184. 15  To display help information, depress the H Key while holding the ALT Key.
  185.  
  186.         ALT H
  187.  
  188. 16  To remove the help display, depress the Escape Key or depress the H Key
  189.     while holding the ALT Key.
  190.  
  191.         ESC or ALT H
  192.  
  193.  
  194.  
  195.  
  196.                                      5-3
  197.  
  198.  
  199.  
  200.  
  201.                             BATCH FILE MAINTENANCE
  202. ------------------------------------------------------------------------------
  203.  
  204. BATCH FILE MAINTENANCE (Continued)
  205.  
  206. 17  To print the currently displayed file, depress the P Key while holding the
  207.     Alt Key.
  208.  
  209.         ALT P
  210.  
  211. 18  To move to the DRIVE:PATH\FILENAME.EXT field from any location, depress
  212.     the Home Key while holding the Control Key.
  213.  
  214.         CTRL HOME
  215.  
  216. 19  To view the prior page or the next page, depress the Page Up Key or the
  217.     Page Down Key.
  218.  
  219.         PAGE UP
  220.         PAGE DOWN
  221.  
  222. 20  To exit from BATCH FILE MAINTENANCE and return to the UTILITIES menu,
  223.     depress the Escape Key.
  224.  
  225.         ESC
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.                                      5-4
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.